package jm.data.structure.linked;

/**
 * @Description 双向循环链表测试
 * @date 2022/4/6 16:55
 */
public class MainCircleDoubleLinkedList {
    public static void main(String[] args) {
        CircleDoubleLinkedList<Integer> list = new CircleDoubleLinkedList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(0,99);
        list.add(list.size(), 999);
        System.out.println(list);

        list.remove(0);
        list.remove(list.size() - 1);
        System.out.println(list);

    }
}
